let obj1 = {
    name: "Hydra"
}

let obj2 = {
    age: 35
}

// 利用对象的扩展运算符，可以将多个对象合并成一个新对象
let newObj = {
    ...obj1,
    ...obj2,
}

console.log("newObj = ",newObj); // { name: 'Hydra', age: 35 }